package com.hiwhitley.himei.contract.model;

import com.hiwhitley.himei.contract.CommonFindContract;
import com.hiwhitley.himei.entity.FindMoreInfo;
import com.hiwhitley.himei.network.RetrofitFactory;
import com.hiwhitley.himei.network.service.OpenEyesService;

import rx.Observable;

/**
 * Created by hiwhitley on 2016/9/28.
 */

public class CommandFindModel implements CommonFindContract.Model {

    private OpenEyesService mOpenEyesService;

    private static final String TAG = "CommandFindModel";

    public CommandFindModel() {
        mOpenEyesService = RetrofitFactory.getOpenEyesService();
    }

    @Override
    public Observable<FindMoreInfo> getCommonFinds(String name, String strategy) {
        return mOpenEyesService.getFindMoreInfo(name, strategy);
    }

}
